﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nuzzle.Protocol.Types.Version
{
    public class Version
    {
        public byte Major = 0;
        public byte Minor = 0;
        public byte Release = 0;
        public short Revision = 0;
        public byte Patch = 0;
        public byte BuildType = 0;

        public void Deserialize(NetworkMessageReader reader)
        {
            this.Major = reader.Reader.readByte();
            this.Minor = reader.Reader.readByte();
            this.Release = reader.Reader.readByte();
            this.Revision = reader.Reader.readShort();
            this.Patch = reader.Reader.readByte();
            this.BuildType = reader.Reader.readByte();
        }
    }
}
